package person.bluext.singlegateway.common.model;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

/**
 * Description : basic model
 * <p>Every pojo should extends this class</p>
 *
 * @author : bluext
 */
public class BasicModel implements Serializable {

    /**
     * convert to json string
     *
     * @return json string
     */
    public String toJsonStr() {
        return JSON.toJSONString(this);
    }
}
